<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="application/msword">
    <title>文件操作</title>
    <script>
        function openmydoc(path)

        {
            var doc=new ActiveXObject("Word.Application");
            doc.visible=true;
            doc.Documents.Open(path);
        }
    </script>
</head>
<body>
    <a href="../abc.docx">打开word</a>
    <a href="file:///d:\abc.docx"  onclick="openmydoc('file:///d:/abc.docx');"
       type="activxobject(word.application)">博客文章 </a>
</body>
</html>